package com.zeei.gis.service.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;

import com.zeei.gis.dao.EmissionGisDao;
import com.zeei.gis.service.EmissionGisService;
import com.zeei.gis.vo.EmissionGisVO;

/**
 * <pre>
 *project: pls
 *src: com.zeei.gis.service.imp.EmissionGisServiceImpl
 *builder: meng.jy
 *date: 2018年1月12日
 *Description: 排放量service实现类
 * </pre>
 */
@Service("EmissionGisServiceImpl")
public class EmissionGisServiceImpl implements EmissionGisService {

	@Autowired
	private EmissionGisDao emissionGisDao;

	@Override
	public List<EmissionGisVO> queryPolyList(EmissionGisVO vo) {

		Assert.notNull(vo, "入参对象不能为空");
		Assert.hasText(vo.getArealevel(), "行政等级不能为空!");

		return this.emissionGisDao.queryPolyList(vo);
	}

	@Override
	public List<EmissionGisVO> queryMultiPointList(EmissionGisVO vo) {

		return this.emissionGisDao.queryMultiPointList(vo);
	}

	@Override
	public List<EmissionGisVO> queryPolyRankList(EmissionGisVO vo) {

		Assert.notNull(vo, "入参对象不能为空");
		Assert.hasText(vo.getArealevel(), "行政等级不能为空!");
		Assert.hasText(vo.getPermitactual(), "【实际排放量|许可排放量】参数不能为空!");

		return this.emissionGisDao.queryPolyRankList(vo);
	}

	@Override
	public List<EmissionGisVO> queryMultiPointRankList(EmissionGisVO vo) {

		Assert.notNull(vo, "入参对象不能为空");
		Assert.hasText(vo.getPermitactual(), "【实际排放量|许可排放量】参数不能为空!");

		return this.emissionGisDao.queryMultiPointRankList(vo);
	}
}
